local VAR sh_udall_g sh_w_g sh_w4_g sh_w4_w sh_p_w sh_p_w4 sh_ud_w4 sh_udd_w4 sh_udd_p sh_udd_ud sh_as_p sh_ud_w sh_ud_p sh_as_ud sh_as_udd sh_as_w sh_as_ep
foreach v of local VAR {
   tab `v'	
}

eststo O_TB1_A: estpost tabstat `VAR', statistics(N mean sd p10 p25 median p75 p90) columns(statistics)
esttab O_TB1_A using "${tables}\TableB1PanelA.tex", cells("count(fmt(%9.0gc)) mean(fmt(a2)) sd(fmt(a2)) p10(fmt(a2)) p25(fmt(a2)) p50(fmt(a2)) p75(fmt(a2)) p90(fmt(a2))")  nomtitles label nonumbers noobs unstack replace posthead(" ") nodep collabels(none) prehead(" ") postfoot(" ")